/*
* iziModal | v1.4.0
* http://izimodal.marcelodolce.com
* by Marcelo Dolce.
*/
.iziModal {
    display: none;
    position: fixed;
    width: 100%;
    left: 50%;
    top: 50%;
    background: #FFF;
    box-shadow: 0 0 8px rgba(0,0,0,.3);
    transition: margin-top 0.3s ease;
}
    .iziModal.isFullscreen{
        margin-top: 0 !important;
        margin-left: 0 !important;
        max-width: 100% !important;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
    }
    .iziModal.isAttachedTop{
        margin-top: 0 !important;
        top: 0;
        bottom: auto;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
    }
    .iziModal.isAttachedTop .iziModal-header{
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    .iziModal.isAttachedBottom{
        margin-top: 0 !important;
        top: auto;
        bottom: 0;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

.iziModal *{
    -webkit-font-smoothing: antialiased;
}
.iziModal::after{
    content: '';
    width: 100%;
    height: 0px;
    opacity: 0;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,0.35)));
    background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.35) 100%);
    background: -o-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.35) 100%);
    background: -ms-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.35) 100%);
    background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.35) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#59000000',GradientType=0 );
    transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    pointer-events: none;
}
.iziModal.hasScroll::after{
    height: 50px;
    opacity: 1;
}
.iziModal .iziModal-progressbar{
    position: absolute;
    left: 0;
    top: 0px;
    width: 100%;
    z-index: 1;
}
.iziModal .iziModal-progressbar > div{
    height: 2px;
    width: 100%;
}
.iziModal .iziModal-button{
    display: block;
    position: absolute;
    top: 16px;
    z-index: 2;
    outline: none;
    height: 34px;
    width: 34px;
    padding: 0;
    margin: 0;
    opacity: 0.5;
    border-radius: 50%;
    transition: transform 0.5s cubic-bezier(.16,.81,.32,1), opacity 0.5s ease;
    background-size: 67% !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent; /* For some Androids */
}
.iziModal .iziModal-button-close{
    right: 10px;
    background: url('') no-repeat 50% 50%;
}
.iziModal .iziModal-button-fullscreen{
    right: 44px;
    background: url('') no-repeat 50% 50%;
}
.iziModal.isFullscreen .iziModal-button-fullscreen{
    background: url('') no-repeat 50% 50%;
}
.iziModal .iziModal-button-close:hover{
    transform: rotate(180deg);
}
.iziModal .iziModal-button:hover{
    opacity: 1;    
}
.iziModal .iziModal-header {
    background: #88A0B9;
    padding: 14px 40px 15px 18px;
    box-shadow: inset 0 -10px 15px -12px rgba(0, 0, 0, 0.3), 0 0 0px #555;
    overflow: hidden;
    position: relative;
    z-index: 10;
}
.iziModal .iziModal-header-icon{
    font-size: 40px;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 15px 0 0;
    margin: 0;
    float: left;
}
.iziModal .iziModal-header-title {
    color: #FFF;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}
.iziModal .iziModal-header-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.45;
}
.iziModal .iziModal-header-title, .iziModal .iziModal-header-subtitle{
    display: block;
    margin: 0;
    padding: 0;
    font-family: Arial;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .iziModal .iziModal-header.iziModal-noSubtitle{
        height: auto;
        padding: 10px 40px 12px 15px;
    }
    .iziModal .iziModal-header.iziModal-noSubtitle .iziModal-header-icon{
        font-size: 23px;
        padding-right: 13px;
    }
    .iziModal .iziModal-header.iziModal-noSubtitle .iziModal-header-title{
        font-size: 15px;
        margin: 3px 0 0 0;
        font-weight: 400;
    }

    .iziModal .iziModal-header.iziModal-noSubtitle .iziModal-button{
        top: 6px;
    }

    /* RTL */

    .iziModal-rtl {
        direction: rtl;
    }
    .iziModal-rtl .iziModal-header {
        padding: 14px 18px 15px 40px;
    }
    .iziModal-rtl .iziModal-header-icon {
        float: right;
        padding: 0 0 0 15px;
    }
    .iziModal-rtl .iziModal-button-close {
        left: 10px;
        right: initial;
    }
    .iziModal-rtl .iziModal-button-fullscreen {
        right: initial;
        left: 44px;
    }
    .iziModal-rtl .iziModal-header.iziModal-noSubtitle {
        padding: 10px 15px 12px 40px;
    }    
    .iziModal-rtl .iziModal-header.iziModal-noSubtitle .iziModal-header-icon {
        padding: 0 0 0 13px;
    }

    /* LIGHT THEME */

    .iziModal.iziModal-light .iziModal-header-icon{
        color: rgba(0, 0, 0, 0.5);
    }
    .iziModal.iziModal-light .iziModal-header-title{
        color: #000;
    }
    .iziModal.iziModal-light .iziModal-header-subtitle{
        color: rgba(0, 0, 0, 0.6);
    }
    .iziModal.iziModal-light .iziModal-button-close{
        background: url('') no-repeat 50% 50%;
    }
    .iziModal.iziModal-light .iziModal-button-fullscreen{
        background: url('') no-repeat 50% 50%;
    }
    .iziModal.iziModal-light.isFullscreen .iziModal-button-fullscreen{
        background: url('') no-repeat 50% 50%;
    }


.iziModal .iziModal-loader{
    background: #FFF url() no-repeat 50% 50%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 9;
}

.iziModal .iziModal-content-loader{
    background: url() no-repeat 50% 50%;
}

.iziModal .iziModal-content:before,
.iziModal .iziModal-content:after { content:''; display:table }
.iziModal .iziModal-content:after { clear:both }
.iziModal .iziModal-content{ zoom:1; width: 100%; }
.iziModal .iziModal-wrap{
    width: 100%;
    position: relative;
    transition: height 0.3s ease;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}
.iziModal .iziModal-iframe{
    width: 100%;
    margin-bottom: -4px;
    transition: height 0.3s ease;
}
.iziModal-overlay{
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.iziModal-navigate{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
}
.iziModal-navigate-caption{
    position: absolute;
    left: 10px;
    top: 10px;
    color: white;
    line-height: 16px;
    font-size: 9px;
    font-family: arial;
    letter-spacing: 0.1em;
    text-indent: 0;
    text-align: center;
    width: 70px;
    padding: 5px 0;
    text-transform: uppercase;
    display: none;
}
.iziModal-navigate-caption::before, .iziModal-navigate-caption::after {
    position: absolute;
    top: 2px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 14px;
    font-size: 12px;
    content: '';
    background-size: 100% !important;
}
.iziModal-navigate-caption:before{
    left: 0;
    background: url('') no-repeat 50% 50%;
}
.iziModal-navigate-caption:after{
    right: 0;
    background: url('') no-repeat 50% 50%;
}
    .iziModal-navigate > button{
        position: fixed;
        bottom: 0;
        top: 0;
        border:0;
        height: 100%;
        width: 84px;
        background-size: 100% !important;
        cursor: pointer;
        padding: 0;
        opacity: 0.2;
        transition: opacity 0.3s ease;
        pointer-events: all;
        margin: 0;
    }
    .iziModal-navigate > button:hover{
        opacity: 1;
    }
    .iziModal-navigate-prev{
        left: 50%;
        background: url('') no-repeat 50% 50%;
    }
    .iziModal-navigate-next{
        right: 50%;
        background: url('') no-repeat 50% 50%;
    }


html.iziModal-isOverflow{
    overflow: hidden;
}
html.iziModal-isOverflow body, html.iziModal-isAttached body{
    overflow-y: scroll;
    position: relative;
}
html.iziModal-isAttached{
    overflow: hidden;
}
.iziModal.isAttached{
    border-radius: 0 !important;
    margin-top: 0 !important;
    top: 0 !important;
    bottom: 0;
    transition: none !important;
}
.iziModal.isAttached .iziModal-header{
    border-radius: 0;       
}
.iziModal.isAttached .iziModal-wrap{
    overflow-y: auto;
    overflow-x: hidden;
}

/* SCROLL */

.iziModal ::-webkit-scrollbar {
    overflow: visible;
    height: 7px;
    width: 7px;
}
.iziModal ::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,.2);
    background-clip: padding-box;
    border: solid transparent;
    border-width: 0px;
    min-height: 28px;
    padding: 100px 0 0;
    box-shadow: inset 1px 1px 0 rgba(0,0,0,.1),inset 0 -1px 0 rgba(0,0,0,.07);
}
.iziModal ::-webkit-scrollbar-thumb:active {
    background-color: rgba(0,0,0,.4);
}
.iziModal ::-webkit-scrollbar-button {
    height: 0;
    width: 0;
}
.iziModal ::-webkit-scrollbar-track {
    background-clip: padding-box;
    border: solid transparent;
    border-width: 0 0 0 2px;
}

/* MODAL ANIMATIONS */

.iziModal.transitionIn .iziModal-header{
    -webkit-animation: slideDown 0.7s cubic-bezier(0.7,0,0.3,1); /* both */
    -moz-animation: slideDown 0.7s cubic-bezier(0.7,0,0.3,1); /* both */
    animation: slideDown 0.7s cubic-bezier(0.7,0,0.3,1); /* both */
}
    .iziModal.transitionIn .iziModal-header .iziModal-header-icon {
        -webkit-animation: revealIn 1s cubic-bezier(.16,.81,.32,1) both;
        -moz-animation: revealIn 1s cubic-bezier(.16,.81,.32,1) both;
        animation: revealIn 1s cubic-bezier(.16,.81,.32,1) both;
    }
    .iziModal.transitionIn .iziModal-header .iziModal-header-title, .iziModal.transitionIn .iziModal-header .iziModal-header-subtitle {
        -webkit-animation: slideIn 1s cubic-bezier(.16,.81,.32,1) both;
        -moz-animation: slideIn 1s cubic-bezier(.16,.81,.32,1) both;
        animation: slideIn 1s cubic-bezier(.16,.81,.32,1) both;
    }

    .iziModal.transitionIn .iziModal-header .iziModal-button{
        -webkit-animation: revealIn 1.2s cubic-bezier(0.7,0,0.3,1);
        -moz-animation: revealIn 1.2s cubic-bezier(0.7,0,0.3,1);
        animation: revealIn 1.2s cubic-bezier(0.7,0,0.3,1);
    }

.iziModal.transitionIn .iziModal-iframe, .iziModal.transitionIn .iziModal-wrap{
    -webkit-animation: fadeIn 1.3s;
    -moz-animation: fadeIn 1.3s;
    animation: fadeIn 1.3s;
}
.iziModal.transitionIn .iziModal-header {
    -webkit-animation-delay: 0.0s;
    -moz-animation: 0.0s;
    animation-delay: 0.0s;
}
.iziModal.transitionIn .iziModal-header .iziModal-header-icon,
.iziModal.transitionIn .iziModal-header .iziModal-header-title {
    -webkit-animation-delay: 0.4s;
    -moz-animation: 0.4s;
    animation-delay: 0.4s;
}
.iziModal.transitionIn .iziModal-header .iziModal-header-subtitle {
    -webkit-animation-delay: 0.5s;
    -moz-animation: 0.5s;
    animation-delay: 0.5s;
}

    .iziModal.transitionOut .iziModal-header, .iziModal.transitionOut .iziModal-header *{
        transition: none !important;
    }

/* ANIMATIONS */

.comingIn{
    -webkit-animation: comingIn 0.5s ease;
    -moz-animation: comingIn 0.5s ease;
    animation: comingIn 0.5s ease;
}
.comingOut{
    -webkit-animation: comingOut 0.5s cubic-bezier(.16,.81,.32,1);
    -moz-animation: comingOut 0.5s cubic-bezier(.16,.81,.32,1);
    animation: comingOut 0.5s cubic-bezier(.16,.81,.32,1);
    animation-fill-mode: forwards;
}
.fadeOut {
    -webkit-animation: fadeOut 0.5s;
    -moz-animation: fadeOut 0.5s;
    animation: fadeOut 0.5s;
    animation-fill-mode: forwards;
}
.fadeIn {
    -webkit-animation: fadeIn 0.5s;
    -moz-animation: fadeIn 0.5s;
    animation: fadeIn 0.5s;
}
.bounceInDown{
    -webkit-animation: bounceInDown 0.7s ease;
    animation: bounceInDown 0.7s ease;
}
.bounceOutDown{
    -webkit-animation: bounceOutDown 0.7s ease;
    animation: bounceOutDown 0.7s ease;
}
.bounceInUp {
    -webkit-animation: bounceInUp 0.7s ease;
    animation: bounceInUp 0.7s ease;
}
.bounceOutUp {
    -webkit-animation: bounceOutUp 0.7s ease;
    animation: bounceOutUp 0.7s ease;
}
.fadeInDown {
    -webkit-animation: fadeInDown 0.7s cubic-bezier(.16,.81,.32,1);
    animation: fadeInDown 0.7s cubic-bezier(.16,.81,.32,1);
}
.fadeOutDown {
    -webkit-animation: fadeOutDown 0.5s ease;
    animation: fadeOutDown 0.5s ease;
}
.fadeInUp {
    -webkit-animation: fadeInUp 0.7s cubic-bezier(.16,.81,.32,1);
    animation: fadeInUp 0.7s cubic-bezier(.16,.81,.32,1);
}
.fadeOutUp {
    -webkit-animation: fadeOutUp 0.5s ease;
    animation: fadeOutUp 0.5s ease;
}
.fadeInLeft {
    -webkit-animation: fadeInLeft 0.7s cubic-bezier(.16,.81,.32,1);
    animation: fadeInLeft 0.7s cubic-bezier(.16,.81,.32,1);
}
.fadeOutLeft {
    -webkit-animation: fadeOutLeft 0.5s ease;
    animation: fadeOutLeft 0.5s ease;
}
.fadeInRight {
    -webkit-animation: fadeInRight 0.7s cubic-bezier(.16,.81,.32,1);
    animation: fadeInRight 0.7s cubic-bezier(.16,.81,.32,1);
}
.fadeOutRight {
    -webkit-animation: fadeOutRight 0.5s ease;
    animation: fadeOutRight 0.5s ease;
}
.flipInX {
    -webkit-animation: flipInX 0.7s ease;
    animation: flipInX 0.7s ease;
}
.flipOutX {
    -webkit-animation: flipOutX 0.7s ease;
    animation: flipOutX 0.7s ease;
}

@-webkit-keyframes comingIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px) perspective( 600px ) rotateX( 10deg );
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) perspective( 600px ) rotateX( 0 ); 
    }
}
@-moz-keyframes comingIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px) perspective( 600px ) rotateX( 10deg );
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) perspective( 600px ) rotateX( 0 ); 
    }
}
@keyframes comingIn {
    0% {
        opacity: 0;
        /*transform: translateY(-20px) perspective( 600px ) rotateX( 10deg );*/
        transform: scale(0.9) translateY(-20px) perspective( 600px ) rotateX( 10deg );
    }
    100% {
        opacity: 1;
        /*transform: scale(1) translateY(0) perspective( 600px ) rotateX( 0 ); */
        transform: scale(1) translateY(0) perspective( 600px ) rotateX( 0 ); 
    }
}

@-webkit-keyframes comingOut {
    0% {
        opacity: 1;
        transform: scale(1); 
    }
    100% {
        opacity: 0;
        transform: scale(0.9); 
    }
}
@-moz-keyframes comingOut {
    0% {
        opacity: 1;
        transform: scale(1); 
    }
    100% {
        opacity: 0;
        transform: scale(0.9); 
    }
}
@keyframes comingOut {
    0% {
        opacity: 1;
        /*transform: translateY(0) perspective( 600px ) rotateX( 0 ); */
        transform: scale(1); 
    }
    100% {
        opacity: 0;
        /*transform: translateY(10px) perspective( 600px ) rotateX( 10deg ); */
        transform: scale(0.9); 
    }
}
@-webkit-keyframes fadeOut {
    0% {opacity: 1;}
    100% {opacity: 0;}
}
@-moz-keyframes fadeOut {
    0% {opacity: 1;}
    100% {opacity: 0;}
}
@keyframes fadeOut {
    0% {opacity: 1;}
    100% {opacity: 0;}
}

@-webkit-keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}
@-moz-keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}
@keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

@-webkit-keyframes slideIn {
    0% {
        opacity: 0;
        -webkit-transform: translateX(50px);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateX(0);
    }
}
@-moz-keyframes slideIn {
    0% {
        opacity: 0;
        -moz-transform: translateX(50px);
    }
    100% {
        opacity: 1;
        -moz-transform: translateX(0);
    }
}
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@-webkit-keyframes slideDown {
    0% { opacity: 0; -webkit-transform: scale(1,0) translateY(-40px); -webkit-transform-origin: center top; }
}
@-moz-keyframes slideDown {
    0% { opacity: 0; -moz-transform: scale(1,0) translateY(-40px); -moz-transform-origin: center top; }
}
@keyframes slideDown {
    0% { opacity: 0; transform: scale(1,0) translateY(-40px); transform-origin: center top; }
}

@-webkit-keyframes revealIn {
    0% { opacity: 0; -webkit-transform: scale3d(0.3,0.3,1); }
}
@-moz-keyframes revealIn {
    0% { opacity: 0; -moz-transform: scale3d(0.3,0.3,1); }
}
@keyframes revealIn {
    0% { opacity: 0; transform: scale3d(0.3,0.3,1); }
}

@-webkit-keyframes bounceInDown {
    from, 60%, 75%, 90%, to {
        -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -1000px, 0);
        transform: translate3d(0, -1000px, 0);
    }
    60% {
        opacity: 1;
        -webkit-transform: translate3d(0, 25px, 0);
        transform: translate3d(0, 25px, 0);
    }
    75% {
        -webkit-transform: translate3d(0, -10px, 0);
        transform: translate3d(0, -10px, 0);
    }
    90% {
        -webkit-transform: translate3d(0, 5px, 0);
        transform: translate3d(0, 5px, 0);
    }
    to {
        -webkit-transform: none;
        transform: none;
    }
}
@keyframes bounceInDown {
    from, 60%, 75%, 90%, to {
        -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -1000px, 0);
        transform: translate3d(0, -1000px, 0);
    }
    60% {
        opacity: 1;
        -webkit-transform: translate3d(0, 25px, 0);
        transform: translate3d(0, 25px, 0);
    }
    75% {
        -webkit-transform: translate3d(0, -10px, 0);
        transform: translate3d(0, -10px, 0);
    }
    90% {
        -webkit-transform: translate3d(0, 5px, 0);
        transform: translate3d(0, 5px, 0);
    }
    to {
        -webkit-transform: none;
        transform: none;
    }
}
@-webkit-keyframes bounceOutDown {
    20% {
        -webkit-transform: translate3d(0, 10px, 0);
        transform: translate3d(0, 10px, 0);
    }
    40%, 45% {
        opacity: 1;
        -webkit-transform: translate3d(0, -20px, 0);
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 0;
        -webkit-transform: translate3d(0, 1000px, 0);
        transform: translate3d(0, 1000px, 0);
    }
}
@keyframes bounceOutDown {
    20% {
        -webkit-transform: translate3d(0, 10px, 0);
        transform: translate3d(0, 10px, 0);
    }
    40%, 45% {
        opacity: 1;
        -webkit-transform: translate3d(0, -20px, 0);
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 0;
        -webkit-transform: translate3d(0, 1000px, 0);
        transform: translate3d(0, 1000px, 0);
    }
}

@-webkit-keyframes bounceInUp {
    from, 60%, 75%, 90%, to {
        -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 1000px, 0);
        transform: translate3d(0, 1000px, 0);
    }
    60% {
        opacity: 1;
        -webkit-transform: translate3d(0, -20px, 0);
        transform: translate3d(0, -20px, 0);
    }
    75% {
        -webkit-transform: translate3d(0, 10px, 0);
        transform: translate3d(0, 10px, 0);
    }
    90% {
        -webkit-transform: translate3d(0, -5px, 0);
        transform: translate3d(0, -5px, 0);
    }
    to {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}
@keyframes bounceInUp {
    from, 60%, 75%, 90%, to {
        -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 1000px, 0);
        transform: translate3d(0, 1000px, 0);
    }
    60% {
        opacity: 1;
        -webkit-transform: translate3d(0, -20px, 0);
        transform: translate3d(0, -20px, 0);
    }
    75% {
        -webkit-transform: translate3d(0, 10px, 0);
        transform: translate3d(0, 10px, 0);
    }
    90% {
        -webkit-transform: translate3d(0, -5px, 0);
        transform: translate3d(0, -5px, 0);
    }
    to {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

@-webkit-keyframes bounceOutUp {
    20% {
        -webkit-transform: translate3d(0, -10px, 0);
        transform: translate3d(0, -10px, 0);
    }
    40%, 45% {
        opacity: 1;
        -webkit-transform: translate3d(0, 20px, 0);
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 0;
        -webkit-transform: translate3d(0, -2000px, 0);
        transform: translate3d(0, -2000px, 0);
    }
}
@keyframes bounceOutUp {
    20% {
        -webkit-transform: translate3d(0, -10px, 0);
        transform: translate3d(0, -10px, 0);
    }
    40%, 45% {
        opacity: 1;
        -webkit-transform: translate3d(0, 20px, 0);
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 0;
        -webkit-transform: translate3d(0, -1000px, 0);
        transform: translate3d(0, -1000px, 0);
    }
}

@-webkit-keyframes fadeInDown {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, -100px, 0);
        transform: translate3d(0, -100px, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, -100px, 0);
        transform: translate3d(0, -100px, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@-webkit-keyframes fadeOutDown {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        -webkit-transform: translate3d(0, 100px, 0);
        transform: translate3d(0, 100px, 0);
    }
}
@keyframes fadeOutDown {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        -webkit-transform: translate3d(0, 100px, 0);
        transform: translate3d(0, 100px, 0);
    }
}

@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 100px, 0);
        transform: translate3d(0, 100px, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 100px, 0);
        transform: translate3d(0, 100px, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@-webkit-keyframes fadeOutUp {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        -webkit-transform: translate3d(0, -100px, 0);
        transform: translate3d(0, -100px, 0);
    }
}
@keyframes fadeOutUp {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        -webkit-transform: translate3d(0, -100px, 0);
        transform: translate3d(0, -100px, 0);
    }
}

@-webkit-keyframes fadeInLeft {
    from {
        opacity: 0;
        -webkit-transform: translate3d(-200px, 0, 0);
        transform: translate3d(-200px, 0, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}
@keyframes fadeInLeft {
    from {
        opacity: 0;
        -webkit-transform: translate3d(-200px, 0, 0);
        transform: translate3d(-200px, 0, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@-webkit-keyframes fadeOutLeft {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        -webkit-transform: translate3d(-200px, 0, 0);
        transform: translate3d(-200px, 0, 0);
    }
}
@keyframes fadeOutLeft {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        -webkit-transform: translate3d(-200px, 0, 0);
        transform: translate3d(-200px, 0, 0);
    }
}

@-webkit-keyframes fadeInRight {
    from {
        opacity: 0;
        -webkit-transform: translate3d(200px, 0, 0);
        transform: translate3d(200px, 0, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}
@keyframes fadeInRight {
    from {
        opacity: 0;
        -webkit-transform: translate3d(200px, 0, 0);
        transform: translate3d(200px, 0, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@-webkit-keyframes fadeOutRight {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        -webkit-transform: translate3d(200px, 0, 0);
        transform: translate3d(200px, 0, 0);
    }
}
@keyframes fadeOutRight {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        -webkit-transform: translate3d(200px, 0, 0);
        transform: translate3d(200px, 0, 0);
    }
}

@-webkit-keyframes flipInX {
    0% {
        -webkit-transform: perspective(400px) rotateX(60deg);
        opacity: 0;
    }
    40% {
        -webkit-transform: perspective(400px) rotateX(-10deg);
    }
    70% {
        -webkit-transform: perspective(400px) rotateX(10deg);
    }
    100% {
        -webkit-transform: perspective(400px) rotateX(0deg);
        opacity: 1;
    }
}
@keyframes flipInX {
    0% {
        transform: perspective(400px) rotateX(60deg); 
        opacity: 0;
    }
    40% {
        transform: perspective(400px) rotateX(-10deg);
    }
    70% {
        transform: perspective(400px) rotateX(10deg);
    }
    100% {
        transform: perspective(400px) rotateX(0deg);
        opacity: 1;
    }
}

@-webkit-keyframes flipOutX {
    from {
        -webkit-transform: perspective(400px);
        transform: perspective(400px);
    }

    30% {
        -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        opacity: 1;
    }

    to {
        -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 40deg);
        transform: perspective(400px) rotate3d(1, 0, 0, 40deg);
        opacity: 0;
    }
}
@keyframes flipOutX {
    from {
        -webkit-transform: perspective(400px);
        transform: perspective(400px);
    }
    30% {
        -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        opacity: 1;
    }
    to {
        -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 40deg);
        transform: perspective(400px) rotate3d(1, 0, 0, 40deg);
        opacity: 0;
    }
}